#include <iostream>
#include <thread>
using namespace std;
#define N 900

void foo(){
    cout << "id:" << this_thread::get_id() << endl;
    this_thread::sleep_for(chrono::seconds(200));
}

int main()
{
    thread th[N];
    for(int i = 0;i < N;++i){
        th[i] = thread(foo);
        th[i].detach();
    }
    while(1)
        this_thread::sleep_for(chrono::seconds(5));
    return 0;
}
